export type User = {
	token: string;
	userName: string;
	userId: string;
};

export type UserState = {
	user: User | null;
	isLoading: boolean;
	error: string | null;
};

export type LoginParams = {
	username: string;
	password: string;
};

export type UserActions = {
	login: (data: LoginParams) => Promise<void>;
	// logout: () => void;
};

export type UserSlice = UserState & UserActions;
